package domain;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * 
 * 问题 回答
 * 
 * @author oyang
 *
 */
@Entity
//@DiscriminatorValue("question")
@Inheritance(strategy=InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name="id")
public class Question extends Certificate {
	//private String            id; //ID
	//private String certificateId; //证书ID
	private String      question; //问题
	private String        answer; //答案
//	@Id
//	@GeneratedValue(strategy=GenerationType.IDENTITY)
//	public String getId() {
//		return id;
//	}
//	public String getCertificateId() {
//		return certificateId;
//	}
	public String getQuestion() {
		return question;
	}
	public String getAnswer() {
		return answer;
	}
//	public void setId(String id) {
//		this.id = id;
//	}
//	public void setCertificateId(String certificateId) {
//		this.certificateId = certificateId;
//	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
}
